# encoding: UTF-8
 
class Admin::ServicesController < ApplicationController
  
  before_filter :user_signed_in?

  def edit
    @service = Service.find(params[:id]) 
    set_seo_meta '客服中心'
  end

  def update
    @service = Service.find(params[:id])
    if @service.update_attributes!(params[:session])
      redirect_to edit_service_path(1), notice:'修改成功'
    else
      redirect_referrer_or_defautl default
    end
  end
  
end
